package cn.yuanqiao.archive.identification.mapper;

import cn.yuanqiao.archive.identification.domain.IdentificationRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 识别记录Mapper接口
 * 
 * @author xy
 * @date 2023-10-12
 */
@Mapper
public interface IdentificationRecordMapper 
{
    /**
     * 查询识别记录
     * 
     * @param id 识别记录主键
     * @return 识别记录
     */
    public IdentificationRecord selectIdentificationRecordById(@Param("id") Long id, @Param("tableName") String tableName);

    /**
     * 查询识别记录列表
     * 
     * @param identificationRecord 识别记录
     * @return 识别记录集合
     */
    public List<IdentificationRecord> selectIdentificationRecordList(IdentificationRecord identificationRecord);

    /**
     * 新增识别记录
     * 
     * @param identificationRecord 识别记录
     * @return 结果
     */
    public int insertIdentificationRecord(IdentificationRecord identificationRecord);

    /**
     * 修改识别记录
     * 
     * @param identificationRecord 识别记录
     * @return 结果
     */
    public int updateIdentificationRecord(IdentificationRecord identificationRecord);

    /**
     * 删除识别记录
     * 
     * @param id 识别记录主键
     * @return 结果
     */
    public int deleteIdentificationRecordById(Long id);

    /**
     * 批量删除识别记录
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteIdentificationRecordByIds(@Param("ids") Long[] ids, @Param("tableName")String tableName);
}
